package com.wj.blog.mapper;

import com.wj.blog.pojo.User;
import com.wj.blog.utils.Page;
import com.wj.blog.utils.Result;
import org.springframework.stereotype.Component;

import java.util.List;

@Component
public interface UserMapper {
    User getByUsername(String username);

    void save(User user);

    void deleted(Integer id);

    void update(User user);

    void updateInfo(User user);

    Page<List<User>> getByPage(Page<User> user);

    User getById(Integer id);
}
